from bokeh.plotting import figure, show
from bokeh.io import output_notebook

# 在 Jupyter Notebook 中显示图表
output_notebook()

# 创建数据
categories = ['A', 'B', 'C', 'D']
values = [10, 20, 15, 25]

# 创建图表
p = figure(x_range=categories, title="Bar Plot", x_axis_label='Category', y_axis_label='Value')

# 添加柱状图
p.vbar(x=categories, top=values, width=0.5, color="navy")

# 显示图表
show(p)